home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / passwd+ / pwsample < prev    next >
Encoding:
Text File  |  1992-03-12  |  1.5 KB  |  44 lines

  1. # password tests
  2. # format of the GECOS field
  3. GECOS:        "%s %s" f s
  4. GECOS:        "%[^,],%[^,],%s" n o t
  5. FORCEGECOS:    "%s,%s,%s" n o t
  6. # what to log
  7. LOGLEVEL:    all,!debug    > /etc/passwd.log
  8. #
  9. # tests
  10. #
  11. # general tests
  12. #
  13. %#p<6                password must be at least 6 chars long
  14. %#b>0&%#v=0            if alphabetic chars, must be mixed case
  15. #
  16. # people and office (etc.) stuff
  17. # all these are in lower case so we needn't worry about
  18. # mixed cases 
  19. #
  20. "%*p"=~"^%*u$"            login name not allowed as password
  21. "%*p"=~"^%-*u$"            reversed login name not allowed as password
  22. "%*p"=~"^%*f$"            first name not allowed as password
  23. "%*p"=~"^%-*f$"            reversed first name not allowed as password
  24. "%*p"=~"^%*s$"            last name not allowed as password
  25. "%*p"=~"^%-*s$"            reversed last name not allowed as password
  26. "%*p"=~"^%o$"            office not allowed as password
  27. "%*p"=~"^%-o$"            reversed office not allowed as password
  28. "%*p"=~"^%t$"            phone number not allowed as password
  29. "%*p"=~"^%-t$"            reversed phone number not allowed as password
  30. "%*p"=~"^%1*f%1*m%1*s$"        initials not allowed as password
  31. #
  32. # host name stuff
  33. #
  34. "%*p"=~"^%h$"            host name not allowed as password
  35. "%*p"=~"^%-h$"            reversed host name not allowed as password
  36. "%*p"=~"^%d$"            domain name not allowed as password
  37. "%*p"=~"^%-d$"            reversed domain name not allowed as password
  38. "%*p"=~"^%h\.%d$"        domained host name not allowed as password
  39. #
  40. # dictionary words -- look for strange capitalizations too
  41. #
  42. [/usr/dict/words] == "%p"        password matches dictionary entry
  43. {tr A-Z a-z < /usr/dict/words} == "%*p"    password is in dictionary
  44.